/***************************************************************************
 *   Copyright (C) 2008 by Eduardo Gurgel Pinho                            *
 *   edgurgel@gmail.com                                                    *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 3 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
***************************************************************************/

#ifndef __VECTOR_WIDGET_H__
#define __VECTOR_WIDGET_H__

#include "math/vector.h"

#include <QWidget>

class QHBoxLayout;
class QDoubleSpinBox;

namespace Ui {

class Vector_Widget : public QWidget {

Q_OBJECT

public:
	Vector_Widget(QWidget* = 0);
	~Vector_Widget(void);

	void set_vector(const Sirat::Math::Vector&);
	Sirat::Math::Vector get_vector(void) const;
	
public slots:
	
signals:
	void vector_updated(void);
	
private slots:
	void x_change_value(double);
	void y_change_value(double);
	void z_change_value(double);

private:
	Sirat::Math::Vector vector;
	QDoubleSpinBox* x_value;
	QDoubleSpinBox* y_value;
	QDoubleSpinBox* z_value;

};

}

#endif
